import request from "@/utils/request.js";
/**
 * 
 * 所有活动接口 包括：精品路线 亲子研学
 * 
 */
// 亲子研学分类

export function getActivityCategoryList(data) {
	return request.get('activity/category/list', data, {
		noAuth: true
	});
}
// 亲子研学列白
export function getActivityList(data) {
	return request.get('activity/products', data, {
		noAuth: true
	});
}
// 亲子详情
export function getActivityDetail(id) {
	return request.get('activity/product/detail/' + id);
}
// 亲子预支付
export function getActivityPreOrder(data) {
	return request.post('activity/order/pre/order', data);

}
// 与下单
export function getActivityLoadPre(id) {
	return request.get('activity/order/load/pre/' + id)
}
// 计算价格
export function getActivityComputedPrice(data) {
	return request.post('activity/order/computed/price', data)
}
// 创建订单
export function getActivityOrderCreate(data) {
	return request.post('activity/order/create', data)
}

// 身份申请
export function getApplyMemberApply(data) {
	return request.post('apply/member/apply', data)
}
// 身份申请信息
export function getApplyMemberInfo(data) {
	return request.get('apply/member/info', data)
}
// 商户申请
export function getApplyMemApply(data) {
	return request.post('apply/mer/apply', data)
}
// 申请商户信息
export function getApplyMemInfo(data) {
	return request.get('apply/mer/info', data)
}

// 美丽经济

// 餐饮列表
export function getCateringList(data) {
	return request.get('catering/list', data)
}
// 餐饮详情
export function getApplyCateringInfo(id) {
	return request.get('catering/info/' + id)
}
// 套餐详情
export function getApplyCateringProductInfo(id) {
	return request.get('catering/product/' + id)
}
// 创建订单
export function getApplyCateringOrderCreate(data) {
	return request.post('catering/order/createNew', data)
}


// 民宿列表
export function getHotelList(data) {
	return request.get('hotel/list', data)
}
// 民宿详情
export function getApplyHotelInfo(id) {
	return request.get('hotel/info/' + id)
}
// 房间详情
export function getApplyHotelRoomInfo(id) {
	return request.get('hotel/room/info/' + id)
}
// 民宿预下单
export function getApplyHotelPreOrder(data) {
	return request.post('hotel/order/pre/order', data)
}
// 计算价格
export function getApplyHotelComputedPrice(data) {
	return request.post('hotel/order/computed/price', data)
}
// 下单
export function getApplyHotelOrderCreate(data) {
	return request.post('hotel/order/create', data)
}
// 场馆预约
export function getVenueList(data) {
	return request.get('venue/list', data)
}
// 场馆预约详情
export function getVenueInfo(id) {
	return request.get('venue/info/' + id)
}
// 场馆预约详情时间配置
export function getQueryVenueConfig(data) {
	return request.get('venue/order/queryVenueConfig', data)
}
// 计算场馆价格
export function getvenueOrderComputedPrice(data) {
	return request.post('venue/order/computed/price', data)
}
// 生成订单
export function getvenueOrderCreate(data) {
	return request.post('venue/order/create', data)
}
// 积分商城
// 获取积分区间

export function getProductRangeList() {
	return request.get('product/range');
}

// 认养礼包
// 列表
export function getAdoptionList(data) {
	return request.get('adoption/list', data);
}
// 详情
export function getAdoptioniInfo(id) {
	return request.get('adoption/info/' + id);
}
// 投诉建议
export function complaint(data) {
	return request.post('complaint', data)
}
// 投诉列表
export function complaintList(data) {
	
	let daa=`complaintList?state=${data.state}&limit=${data.limit}&limit=${data.limit}`

	return request.post(daa,'')
}

// 获取海报图片
export function getShare(data) {
	return request.get('share', data)
}

// 摄像头列表分类
export function getCameraType(data) {
	return request.get('adoption/cameraType', data)
}
// 和获取摄像头列表
export function getCameraList(data) {
	return request.get('adoption/cameraList', data)
}
// 获取摄像头详情
export function getCameraInfo(data) {
	return request.get('adoption/cameraInfo', data)
}
// 获取摄像头操作
export function getOptCamera(data) {
	return request.get('adoption/optCamera', data)
}

// 抽奖
export function getLotteryList() {
	return request.get('lottery/list');
}
// 我的奖品
export function getLotteryUserList() {

	return request.get('lottery/user/list');
}
// 领取奖品
export function getLotteryReceive(data) {
	return request.post('lottery/receive', data);
}
// 点击抽奖
export function getLotteryDraw() {
	return request.get('lottery/draw');
}

// 用户协议

export function getUserAgreement(data) {
	return request.get('user/agreement', data, {
		noAuth: true
	});
}
// 用户手册
export function getUserGuide() {
	return request.get('user/guide');
}
// 启动页广告
export function getIndexAdStartup(data) {
	return request.get('index/ad/startup', data, {
		noAuth: true
	});
}
export function getIndexAdPage(page) {
	return request.get('index/ad/page/' + page);
}










// 精品列表格
export function getRouteList(data) {
	return request.get('route/list', data, {
		noAuth: true
	});
}
// 详情
export function getRouteDetail(id) {
	return request.get('route/detail/' + id);
}
// 消息列表
export function getUserMessage() {
	return request.get('user/message');
}
// 修改消息状态
export function getUserMessageStatus(id) {
	return request.get('user/message/status/' + id);
}
// 当前订单可用优惠券
export function getCouponsOrder(id) {
	return request.get('coupons/order/' + id);
}
// 商品子集分类
export function getCategoryList() {
	return request.get('category/list');
}